package cn.udrm.water.base.v1.waterdelivery.dto;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import cn.udrm.water.base.v1.waterdelivery.entities.CanalSystemInTake;

@Mapper(componentModel="spring")
public interface CanalSystemInTakeDtoMapper {

	@Mappings({
		@Mapping(source="canalSystem.id", target="canalSystemGuid"),
		@Mapping(source="canalSystem.name", target="canalSystemName")
	})
	public CanalSystemInTakeDto from(CanalSystemInTake canalSystemInTake);
	public CanalSystemInTake fromCanalSystemInTakeDto(CanalSystemInTakeDto canalSystemInTakeDto);
	
	public List<CanalSystemInTakeDto> from(List<CanalSystemInTake> canalSystemInTakes);
}
